How are they getting (h/4)(400N)(sin90)
T = r x F sin(theta)
r = (h/4) is the distance of the cg of the door from the hinge line. F = 400N is the applied force. Theta is 90 degrees in this case.
The way I see it, there is a virtual bar of length h/4 which sticks out perpendicular to the line between the hinges at a distance of h/2. And the 400N force being applied to the end of this bar is parallel to the line between the hinges.
So it seems that the 400N force must be applied at a diagonal angle of some sort.... with some force going downwards and some force going to the left.
How is this not the case?
The 400N force is *downward only* -- there is no component going to the left. It is due strictly to gravity.
Consider your drawing with the conceptual bars. The horizontal bar (h/4 in length) could be attached at the top, middle (where you have drawn it), or bottom -- and the torque it applies to point A would not change. The resultant force F would not change either. It will always be 1/4 of the vertical force, simply because its moment arm, h, is four times greater than the horizontal moment arm, h/4.