Adding Panel to New Window

I wanted to display a new WIndow and that Window should contain a Panel. Is that possible? If yes, then how do I do that?

Thanks in advance,

panel.setContent(…); // Whatever you want to display in the panel

The Window is basically a more specific type of Panel, so you should just be able to add your content directly to the Window instead of wrapping it in an additional Panel.