Record window position and size to restore at next startup.