You can, but note that as a user you have to open System Preferences and check a checkbox to allow said malware to do this. (Apple locked down the accessibility APIs that let apps easily manipulate each other a few years ago.)
"The Dropbox badge
"Seeing who’s viewed your files
"Better prioritization for file syncing"
https://help.dropbox.com/installs-integrations/desktop/mac-p...