Maximizes or restores the frame under Windows and MacOS; the frame's show state is not affected. Under Windows, an iconized frame cannot be maximized or restored.
A window's maximization can be changed by the user, and such changes do not go through this method; use on-size to monitor size changes.
If maximize? is #f, the window is restored, otherwise it is maximized.