Hide/Show app by clicking Dock icon

I'd like to recreate the familiar behavior from Linux and Windows. Maybe it's already possible?

Thanks