Implement resizable and draggable with jQuery UI.