Suspends the coroutine to execute the defined block on the main rendering thread and return its result.