Am I really getting it wrong? Are you writing something in JavaScript?
If so, you can add windows to the object by simply declaring a variable in the global scope.
window.myvar = 123123;
Indeed, if you did not wrap your code in closure , you can simply do:
var myvar = "some value";
source
share