packages/material-ui-utils/src/ownerWindow.ts/ownerWindow
export default function ownerWindow(node: Node | undefined): Window {
  const doc = ownerDocument(node);
  return doc.defaultView || window;
}