Sets a global Xojo or Real Studio object variable.
Note that the Lua script plugin will keep reference to the passed in REALbasic object until the LuaScript object is terminated. This is done to ensure that objects that are passed to Lua do not get terminated while Lua might still be using them.