/Engine/Source/Runtime/Slate/Public/Framework/Application/SlateApplication.h
The active modal window or nullptr if there is no modal window.
[TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [SWindow](API\Runtime\SlateCore\Widgets\SWindow) > GetActiveModalWindow() const