--attach option doesn't work for File/Folder Open/Save dialogs
This has been a problem for me in every version of Ubuntu since Bionic Beaver was released. Whatever versions of Zenity that started having this problem that was shipped with Bionic onwards is likely to be repoducible in other linux distro's including non-Ubuntu-based if I had to guess.