Search the source for the FloatingToolForm class. It should be in the main paintdotnet project.
I know, I saw it, but the code makes so many references to other bits of code, it would be next to impossible to disentangle. I searched google fo other ways to do it, but you guys are apperently the only ones willing to share... >.<