I've managed to achieve it with a help of Wraparound app (Free). It wraps mouse around your monitors so you can setup you monitors arrangement so the monitor you want your dock to be on would be first (if you want dock on left) or last (if you want it on right) and then just wrap mouse movement horizontally.

Here is example of my monitor arrangement before

and this is after

and here's how Wraparounds settings look

so in the end my real setup looks like this

The only thing that doesn't work is dragging window from middle monitor to the left, it seems to work for an instant but then gets teleported back. But I'm using Spectacle app (Free) to manage windows and I use a shortcut to move windows between monitors so that's not a problem for me at all.