The UIEvent.view read-only property returns the object from which the event was generated. In browsers, this is the Window object the event happened in.
UIEvent.view
external Window? get view;