That's great, I love it !
If someone find how to do the last step, cool, but if nobody does, no problem, you've already done a great job !!
I'll code it as-is in my application. After all, if I can pop the dialog, the users will only have to switch to the "sharing" tab, which is not...