Don't. A switch is a small part of the full range of MOSFET operations.
While a power MOSFET certainly can perform as a switch, that is actually a special case of its actual operation. Conceptually, think of it more as a variable resistor like a volume control, except that the resistance is varied as a function of the voltage applied between the gate and source, as opposed to the rotation of the wiper against the resistance element.
A theoretically perfect MOSFET acts at the two endpoints of a pot - it is either an infinite resistance, or zero ohms. A real world MOSFET can have a minimum resistance, Rdson (resistance from drain to source in the "on" state) of milliohms, and an off state in the megohms (defined by its leakage current down in the microamps or nanoamps) but it also can have all of the resistance values in between. There are charts on the datasheet showing the relationship between the gate-source voltage (Vgs) and the drain current or drain-source resistance.
In your circuit, U2A varies the voltage at the Q1 gate (see how convenient reference designators are?) based on the voltage across R14. R14 is in series with the coil, and that's how the circuit "knows" what the coil current is.
ak