Saves window dimensions on exit, restores them on load