does anyone have a good routine that will dock my app the the currently active window?

thanks.

michael