How do I send Cmd H with a trackpad gesture.

As a former Windows user I would like to use the trackpad gesture to hide a window so that when I command tab the window for the app appears vs when I click the yellow dot the app switches and I then have to open the window.