The UIEvent.view read-only property returns the is the Window object the event happened in.
UIEvent.view
MDN Reference