

If your monitor/docking station/adapter and the computer support the DP Alternate mode, then you should use that, it should be supported directly by the kernel. Problems may occur if the port is connected to the dedicated graphics and you use the internal graphics card. In my experience it worked perfectly so I do not know any good troubleshooting steps.
Alternatively you could consider sshfs and open the file in a local editor.