OnWindowFocusChanged Implementation