Use window object to store window geometry