Move onWindowFocusChanged hook into separate class