P=IRMS²·RDS(on), simple as that.
Your formula works exactly when PO is the total power output of the PSU and RL is the combined resistance of the load and MOSFET. Do the math (I²·R) and see yourself. If RDS(on) is much less than load resistance, then the approximation given above also gets close enough.