How to show the SWindow when I clicked the button?

I am learning to create a plugin for UE4,I need to show the windows I have created,like this:
TSharedRef Window = SNew(SWindow)
.Title(LOCTEXT)
.SizingRule(ESizingRule::Autosized)
.Content()
[
SNew(SVerticalBox)
+ SVerticalBox::Slot().AutoHeight().Padding(20).HAlign(HAlign_Center)
[
SNew(STextBlock).Text(LOCTEXT(“show”,“Come on,show it!”))
]

];
Window->ShowWindow();
FSlateApplication::Get().AddWindow(Window);

but it doesnt work,I dont know what i missed?
Any idea?

As same as QT,if you want to show your plugin window,you should get the MainFrame at first!

IMainFrameModule& MainFrame=
FModuleManager::LoadModuleChecked<IMainFrameModule>("MainFrame");

ParentWindow = MainFrame.GetParentWindow();
Window->ShowWindow();
FSlateApplication::Get().AddModelWindow(Window,ParentWindow,false);

I wish it helped!!!