/Engine/Source/Runtime/SlateCore/Public/Widgets/SWindow.h
Look up the parent chain until we find the top-level window that owns this window
[TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [SWindow](API\Runtime\SlateCore\Widgets\SWindow) > GetTopmostAncestor()