add window open/close callback

add open / close event callback for iOS, following Android windowDidOpen / windowDidClose event