Why not let the application decide, like with browser tabs?
I absolutely hate it that the default for Gnome is to group all windows of the same application together under the same icon. When I have multiple terminals open, then they are in no way related. I want a specific one. Like writing code in an editor and a terminal for running the application or compiling, and then another one for some shell access.