I don't think it's that fancy. I messed around changing all my emails from pop to imap today and I think its just a folder apple mail creates on the imap server, holding to do's. I'd say it's just the way to do's are implemented in the mail.app.
Could always wish for a shiny new feature though