Virtual Network Computing (VNC) allows remote desktop connections. RealVNC's VNC Server is included with Raspberry Pi OS but is disabled by default. After you set a good password for your account on the pi you can enable it in the Menu --> Preferences --> Raspberry Pi Configuration --> Interfaces and enable the VNC option.
To remotely connect to the VNC Server you need a vnc client.
vinagre
is available on Ubuntu viasudo apt install vinagre
- lots of other options too for Ubuntu/Linux system