Minimize Dialog

Minimize Dialog


I would like to animate a dialog's width, height and position when
pressing a button "minimize".
How can I position it to the right top corner of the document body?
Thanks!