`window` doesn't necessarily exist where you might call this.