Is it possible to track the pixels of a cursor in the text_editor widget?

I’m trying to build a tracker for the cursor in a text_editor but am having a hard time building a custom rectangle that stacks on top of the text_editor. Any help here would be highly appreciated!

It seems to be quite easy to get the screen coordinates of the cursor if patching text_editor.rs to expose cursor as it exposes cursor_position.

The “overlay” can be made by putting the text_editor in a stack! together with a pin wrapping something, similar to the layout pinning example.