First prepare the ubuntu machine by installing vino:
sudo apt install vino
Then hit windows button and look for sharing. Configure the system to allow remote connections with given password.
You also need to disable encryption with:
gsettings set org.gnome.Vino require-encryption false
Then you can access the machine from your Mac with Screen Sharing app with the url