Get the MainContext of the thread used by this object.
Useful when you want to invoke object thread to do some action in it from a different thread.
a ThreadedObject
a MainContext of the object used thread.