Have a look at how the create content form for online editable docs (available in 3.3) is used, that is to create a form unrelated to an existing content node. You should be able to adopt that to a dialog if needed. As you can see from the forms documentation, it is possible to set the submit url to be your own.