James Wee wrote a nice Vue tutorial on how to do things like watching window.scrollY or window.innerWidth values in our whole application.

vue reactive window