Change rectangle to dialog

we can draw dialog by dragging mouse.