The Ubuntu Gnome dock does not show the active Gmail window under the gnome-gmail app symbol, but instead it's associated with the Chrome browser (see two dots under the Chrome browser icon -- one of them is for the Gmail app window).
Ubuntu 22.04 LTS jammy

P.S.: Thank you for this valuable/useful tool! :)