topToWindowTop
Returns a MenuPosition.Vertical which aligns the top of the menu to the top of the window.
The resulting y position will be coerced so that the menu remains within the area inside the given margin from the top and bottom edges of the window.