Abstracting out "window" for environments that don't support it.