added getCocoaWindow()

added getCocoaWindow()
//we need it, this is a very powerful tool