/Engine/Source/Editor/UnrealEd/Public/Tools/LegacyEdModeWidgetHelpers.h
Finds the best item to display widgets for (preferring selected components over selected actors)
virtual [UObject](API\Runtime\CoreUObject\UObject\UObject) * GetItemToTryDisplayingWidgetsFor ( FTransform & OutWidgetToWorld ) const