Make any layer resizable with a minimum width and height. Also allows the layer to become draggable, which is great to replicate desktop window surfaces.
makeResizable = require "makeResizable"
# makeResizable(layer you want resizable, minWidth, minHeight, headerHeight)
# minWidth(num): Cannot resize smaller than this number
# minHeight(num): Cannot resize smaller than this number
# headerHeight(num): (Optional) Will allow this layer to be draggable if clicked within this area
makeResizable(layer, 400, 200, 80)