Bring a foreground node in front of another foreground node

Yes, and I had just told you how by implementing “ViewportBoundsChanged” DiagramEvent listeners on each Diagram.
https://gojs.net/extras/synchronizedDiagrams.html
https://gojs.net/latest/intro/viewport.html