Resizable dialog is not working inside a page with some scroll

This fix is changing the way we set the position of the resizable overlay, using the real position of the element insted of its position inside the viewport.
By default the dialog modal property is false, you can remove this.