I know it is possible by using MOSS + InfoPath to create and use custom Document Information Panel.
However is it possible to write custom InfoPath XML schema and then add it to Content Type definition programmatically or declaratively... Is that possible? Maybe somebody tried something like that?