For Windows, the paid program SuperDisplay will also allow you to use an Android device as a second screen, works wireless or over USB. My Galaxy Tab S7+ is great as a second monitor.
A good SuperDisplay alternative is something I really miss on Linux. Even over wifi, the latency is imperceptible to me, and being able to use the pen input (with pressure and tilt) is the cherry on top.
I also have an S7+, and I've been very happy with the device. How do you feel about it in 2023? I'm tempted to get the S9 Ultra as an upgrade but I'm on the fence right now.
https://superdisplay.app/