function getWindow (element) {
  return element.ownerDocument.defaultView
}
Gets a DOM element's Window.  This is normally just the global `window`
variable, but if we opened a child window, it may be different.
@param {HTMLElement} element
@return {Window}