Some malicious applications may show persistent notifications to show Ads and so on. There should be a way to prevent them from happening.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1180
Patch was rejected upstream on the basis that apps with buggy behavior should be fixed instead. :)