Restore maximized state of window

Restore the maximized state of the window on Windows and Linux, Mac OS X does not have a "maximized" state, just size and position that extends corner to corner.

Closes #2936
Closes #2951