You can check the health of the hard drive by running the DriveDx (free trial period) and posting the complete text report here using the "Additional Text" icon which looks like a piece of paper so I can review it.
You can also run Disk Utility First Aid on the hidden Container to verify the file system does not have any issues. Within Disk Utility you may need to click "View" and select "Show All Devices" before the hidden Container appears on the left pane of Disk Utility. Even if First Aid says everything is "Ok", click "Show Details" and scroll back through the report to see if any unfixed errors are listed. If so, try running First Aid again to see if those errors are ultimately fixed, otherwise you would need to try running First Aid while booted into Recovery Mode. If errors remain unfixed, then they can definitely cause performance issues so if multiple attempts to repair them with First Aid is unsuccessful, then performing a clean install of macOS by first erasing the whole physical drive is the only way to fix those errors.....this destroys all data on the drive so make sure to have a good backup first.
Make sure to disconnect all external devices from the iMac in case one of them is causing a problem.
I have seen some contributors mention that Drop Box and other third party cloud file syncing services can cause performance issues, so maybe temporarily disable Drop Box to see if that helps with performance.
I also see you are a bit behind on the Ventura updates which is now up to 13.6.3.
Make sure all of your third party apps are also up to date with their latest versions as well.