Added implementation of Window::hasFocus() on iOS

This PR implements Window::hasFocus() on iOS. The code is simple, it's similar to what's done on Android.