(MacOs) Unreal Engine GameThread is not the same as the apple Main Thread

It seems unreal GameThread uses Thread 7 on MacOs. Thread 1 is the apple main thread.
I have a to perform actions on the apple main thread for GUI purposes, and im getting exceptions that I am not on the main thread because unreal engine is on Thread 7 for some reason.

Exception: NSWindow drag regions should only be invalidated on the Main Thread

Is there some way to solve this issue?