Enable any DOM element to be resizable and draggable.