docs: function getWindowScrollPosition() {
    invariant(canUseDOM, 'Cannot get current scroll position without a DOM');
  
    return {
      x: window.pageXOffset || document.documentElement.scrollLeft,
      y: window.pageYOffset || document.documentElement.scrollTop
    };
  }