This is needed when using multiple plugins since their GUI operations all have to be run from the same thread.