UAssetEditorSubsystem::FindEditorModeInfo

Returns information about an editor mode, based on the given ID.