I asked this question after consulting documentation, searching for others' solutions, and using various search terms across both Google and Bing. I could not find a way to do this, so I posted a question asking how to do it. I got no answers, three downvotes, and a comment pointing to an answer on a slightly-related question, explaining how to patch in a separate API from a separate UI framework.
I understand that I might've been able to discover that I can patch in a separate UI framework to do what I want, and I might've found that without asking the question. However, I wanted to know how to do this within the specific UI framework in the question's title. Why is this question considered bad, and how do I improve it? A link to it and its text are included below for reference:
How do I get the window coordinates in SwiftUI?
I want to make a parallax background view, where the image behind the UI stays nearly still as the window moves around on the screen. To do this on macOS, I want to get the window's coordinates. How do I get the window's coordinates?