I have a custom window which I want to use to display extra information about the selected object. I see no obvious way to get the currently selected object, though. I could workaround this by adding a button to the context menu, as GetMenuEntries provides the currently selected objects, but this is clunky. Ideally I would like the user to be able to click an object and have the custom window populate with the new object's data.
I could see maybe a Query returning the list of selected objects, but I don't know what my query would be.
Is there any way to accomplish this?