Make window accessible from Lua