Grammarly can detect if a text field is focused on any apps including note, safari and mail on Mac.
It can access the text and get position of that text field to place their widget right beside it.
How can I achieve this? I think it's related to Accessibility Focus State?
