Throughout the examples/docs for the KendoUI Window component, a variable named 'window' is used to reference the component. This is a terrible pratice, because the variable masks the global window object and prevents the script from acessing it further. As your examples are often used as a starting point for custom solutions, you should rename the variable into something like kWindow or similar.
Excellent point Franz! We'll fix this right away