I think this should be using ConfirmDialog in mail_common.js so the Cards abstraction is aware of this dialog.  It does allow you to specify a custom DOM node.