Existing mail viewer window doesn't open when I click on Mail App dock icon
I had this problem but it went away when I removed mail from the dock and then docked it again.

Right click icon, select options, uncheck "Keep in Dock"

Right click icon, select quit

Then start mail from Finder>Applications and recheck "Keep in Dock" from the icon that reappears in the dock