This should certainly be a function call.
Fix all usages of untyped window.

...In the standard library at least. We're probably going to see some
third party library breakage when #2139 goes out. No pain, no gain I
guess?