Implement Window open and close on iOS and Android.