Storing last window state and size to be reused on next startup.