Use console.log instead of alert.
Add a hint that the user should drag the dialog.