How to access Ubuntu GUI remotely from Windows

If needed, install a GUI.

apt install ubuntu-desktop

Install and configure XRDP.

apt install xrdp
systemctl enable xrdp
systemctl start xrdp
adduser xrdp ssl-cert

Configure firewall to allow XRDP.

ufw allow 3389/tcp
ufw reload