Visual bug in Dock after macOS Mojave installation
I have this exact problem while connected on an external monitor using a Macbook Pro 2017. The problem is the window animation, I experience this problem using the Scale Effect animation but it disappears as soon as I am using the Genie Effect. That's an acceptable workaround, still I wonder how this is not fixed on Apple's side.