Safely reference getWindowSize