Adapting to your preferences > Settings > When do you want to minimize? >
When the window is inactive
TheBest Minimize to Tray can minimize any program into the tray when you didn't use it for some time and left the window in the background. You can enter a time limit in this window.
Minimize programs into the tray