Saves the windows size and  location.