macOS Big Sur has built-in tool to do this. Press/click on the green button on top of a window for a second to get a dropdown with options for the current windows.

[![enter image description here][1]][1]


  [1]: https://i.sstatic.net/pSNCo.jpg