Draggable regions can be defined using the -webkit-app-region CSS property.
In the below example the red region is draggable and the blue sub-region is non-draggable.
Windows can be resized by default and closed using JavaScript window.close().