Place a 3D showing 2D and connect two 3D

Godot Version

Godot 4.3

Question

Here is my node

  • node3D
    • sprite3D1
      • subViewPort
        • sprite2D
    • sprite3D2
      • subViewPort
        • sprite2D

I place two sprite3D’s to show 2D, and I also have to place a connect line with texture to connect them, this connect line is also 2D

My purpose is when I move one of sprite3D, my connect line will auto change its position to keep connecting both sprite3D, and if the connect line overlaps other sprite3D, hide the overlapping portion of the connect line

How to do that?