create ResizeDrag.js

this file is used to make the widgets resizable and draggable.