Adding support for dragging to resize the frame.