Implement `onView` for windows; called when using `setVisibleWindow` in UIManager on a previously not visible window. Update windows demo to implement `onView`.