UEditorWorldExtensionCollection::GetLastEditorWorld

Gets the last editor world, will only be non-null when current world is a play world.