This isn't about Leo but I can't be the only one affected by this problem, which can be very annoying.
I use many virtual desktops in my daily computing. Usually I have at least four, and sometimes up to six. For example, my browser and email client are in one. Leo and associated folders, command windows, etc., are in another, and so on.
The problem is in switching from one to another. <Windows key>-<Tab> brings up a special view of all the desktops where you can choose one. In this view you can also move an application from one desktop to another. Over time, switching to this overview gets slower and slower until it becomes intolerable. I've searched the internet without success. The only cure I knew before today was to log off and log back in.
Here's what turns out to be happening. The desktop on your screen, the thing that has a background and the file icons, is a special view created by one particular root instance of Windows Explorer. It starts to use more and more memory over time for reasons unknown to me. When its "Working Set" of memory gets too large, that's when opening the desktop overview gets slow.
You can see this and take care of the problem with the Task Manager program. Look in the "Processes" tab and find all the instances of Windows Explorer, normally near the bottom in a display sorted alphabetically. How will you know the right instance? Most of the Window Explorer instances will show 3 or 4 MB of memory, while one will show over 100 MB. That's the one. I've seen it get up nearly to 300 MB. That's when you get the big lags. Mine is now 145 MB and there isn't a lag in showing the desktop overview. But mine has been slowly climbing all afternoon.
Don't kill this process or you won't be able to communicate with the computer (I learned that the hard way). There is a button in the lower right of the Task Manager that usually reads "End Task". You will notice that when you select a Windows Explorer task that label changes to "Restart". That's what you want to do. Click on it.
The desktop behind your application windows will go blank for a second or so, then rebuild itself. And your virtual desktop overview will be responsive again.
I don't know if Windows 11 has the same problem since I've never been around a Windows 11 computer.