How to open a new window when I click a toolbarButton?

I want to open a new window when I click the toolbarbutton. I can add some textEditors in the window.
I would appreciate it if anyone can give me some advice.
Thanks in advance.

Look at the JUCE demo for popup windows.

Ok, thank you.