For this method, both monitors need to be using the same type of cable (DP, HDMI, etc.).
I had the same issue. I don't know if this works with a dock, but it works if connected directly to the graphics card with Windows 10/Nvidia graphics/DisplayPort.