I've never heard of a program that would do that for any application you are running.  I understand completely what you are asking.  The only programs I've seen that have been able to do that is the ones that are programmed to do that.  Like some programs you can bring up, but when you minimize them, they stick them in the tray.