UObjectBaseUtility::GetOutermostObject

Walks up the list of outers until it finds the top-level one that isn't a package.