Install Dropbox's flatpak (using Bazaar or other method) but DONT OPEN IT YET!
Then you have to use Flatseal to adjust a few configs:
1 - Add /var/home/{username}to the allowed directories under ‘Other Files’
2 - Under ‘Environment, variables’ add: HOME=/var/home/{username}
(Replacing {username}with your actual user name)
Source and source.