Hi,
I have managed to create a SWebBrowser widget on scene like this
mSlateBrowserWidget = SNew(SWebBrowser)
.InitialURL(TEXT("https://www.google.com"));
And then add it to viewport
GEngine->GameViewport->AddViewportWidgetContent(mSlateBrowserWidget.ToSharedRef());
And to remove it
GEngine->GameViewport->RemoveViewportWidgetContent(mSlateBrowserWidget.ToSharedRef());
But how to destroy the mSlateBrowserWidget after it is removed from viewport? I really would not want to left hanging in the memory.