RestoreEditorWorld

Restores GWorld to the passed in one and reset the global flag indicating whether we are a PIE world or not.