Starting with this MacOS (OSX Sequoia), the application window alignment feature, which is one of the most useful features I use in BTT (Better Touch Tool), a Third-Party App, has been integrated into the OS's native functionality. As a result, it is no longer necessary on the Mac Desktop. This is even more true for me since I don't use a Magic Mouse.
After activating an application, select "Window" from the menu and then check the shortcuts for "Move & Resize".
If you use it without any settings, there will be a margin left on the edge of the app. To adjust this, turn off the "Include margins in arranged windows" option in "System Settings - Desktop and Dock".