Question regarding wlr-layer-shell-unstable-v1 protocol

From what i see and understand, this protocol can be used to create an overlay on top of my whole screen while also not interfering with any of the programs below (like consuming mouse events, keyboard presses, etc) if I use `zwlr_layer_surface_v1::set_keyboard_interactivity'.

From the docs:
> Layer surfaces receive pointer, touch, and tablet events normally. If you do not want to receive them, set the input region on your surface to an empty region.

Can I create an overlay on top of my whole screen without interfering with the programs below AND see at what position the cursor is on the overlay?

What I want to achieve from this is, to create an overlay on top of the whole screen and track the mouse position through it since you can't directly get the global mouse position in wayland, and unfortunately, there is no direct way to do this on sway (from what I know).

(I apologize if the question doesn't make sense. I'm new to wayland and don't quite understand it much)