You'll need to read the documentation of whatever system you have there that provides that.

Maybe the system starts the application in a certain way or it jsut starts it and then devivers the drag to the first window or you need to register your program somehow for that kind of operation, etc.

Cheers,