Starting with macOS 12.2 (I believe), I have encountered problems when applications try to open dialogs, especially file dialogs. My hunch is that the problem is some kind of resource leak in the window manager. The system will run fine for a while (a day or two), then suddenly get very slow or applications will hang trying to open a dialog. The most interesting failure occurs when I try to use a Save dialog from Firefox. A file dialog is displayed that is almost completely invisible. The only visible component is the file format menu button. Usually I can dismiss the dialog with ESC, but sometimes that does not work. I have found that quitting an application sometimes fixes the problem temporarily, but generally a restart is needed.
Given the seriousness of the problems, I wonder why I am not hearing about other people having this problem and why the problem has not been fixed. One possibility is that I am using an application that is not widely used and it is triggering the problem be not releasing resources. (I won't name the application now without having more evidence.) As an experiment, I have stopped using that application to see if the problems go away. Even if that is the explanation, I think the window manager should do better at preventing one application from causing problems with other applications.
FB9937157 submitted two months ago