I just used the built-in Window type. Just add a Window object to the tree, add some content (labels, buttons), and it's moveable by default. No code needed (except you do need to add a handler for close request event).
Thanks, I've never used them so I will try it out.