Hi Connor,
The window class needs special handling for some windows classes as well. An example of that is a ListBox that is created by ComboBox. The ListBox HWND parent is desktop but get_accParent should return ComboBox accessibility object.
I'm expecting the same to apply for context menus but I was unable to confirm that with quick testing.
Thanks, Piotr