/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h
Accessor for the delegate called when the window owning the viewport is asked to close.
FOnWindowCloseRequested & OnWindowCloseRequested()