Fixed a bug that after dragging the dialog to another place, the original place prevents closing the dialog by clicking on backdrop.