I posted about this when it first happened to me with Photoshop Beta . When I minimize Photoshop (most recent, updated version) on my 2019 intel iMac (Sonoma 14.6.1), a second "ghost" icon appears as well. Clicking either one opens the real one and they both go away:
It was suggested that I check my dock settings and uncheck "Show suggested and recent apps in Dock". I don't recall if that is what fixed it last year (somehow it did stop), but it recently started happening again and I feel like I accidentally clicked something in Photoshop to make it happen. I do not have "show recent apps" checked and, as you can see in the screenshot, it only happens with photoshop. It never happens with any app other than photoshop. I've closed it and reopened it. I feel like it must be something simple I am missing.