Dialog - Minimize/Maximize

Dialog can be minimizable and maximizable.

Dialog
This Dialog can be Maximized an Minimized!
<p:commandButton value="Show Dialog" onclick="PF('dlg').show();" type="button" />

<p:dialog header="Dialog" widgetVar="dlg" minimizable="true" maximizable="true">
   <h:outputText value="This Dialog can be Maximized an Minimized!" />
</p:dialog>