Sometimes this appears in my Dock:
I've seen it with Finder and Chrome icons as well. When I click on it, it brings the app to the foreground. Sometimes, it says "Handover failed" or something similar. What does this icon represent and what is supposed to happen when I click it? This is on macOS 10.14.6.