How to translate finger coordinates to window relative coordinates

How to translate finger coordinates to window relative coordinates? Especially in a multi display, multi window setup. I can’t find any way how to find out where any touch device actually maps similar to SDL_GetDisplayBounds, so how am I supposed to do this? Since the fake mouse events for touch work fine in window coordinates, I assume SDL2 has this knowledge and it’d be neat if I could actually access it. Is this possible somehow?

Edit: to clarify, it would also be totally enough to just get the screen id & the pixel coordinates on that specific screen. Then I could just loop through the windows myself and translate it. However, it’s not even clear to which screen any touch device maps, so I’m not sure how to do even just that