Technically it’s not the same, in case of IMAP they would need to literally put spam mails into your account. As opposed to having visual elements in the UI that pretend to be an email. Might not feel like a big difference but actively poisoning the users inbox is pretty bad.
This happened just this morning. Probably not the dumbest thing ever, and I blame Snap for putting things where they don’t belong: I deleted stuff from the /run/user/1000/doc directory. Turns out the files there are in fact hard links to files which actually reside somewhere else. Well, they were, until I deleted them forever.
Background: Firefox (as an Ubuntu snap package) downloads files in some kind of sandbox mode and references stuff there for some obscure reason. That was my weekly reminder to get rid of snap packages because snap sucks in a myriad of ways.