Return a JS<Window> from global_object_for_{dom,js}_object.