How to get the visible rect?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By psear

I’m trying to get a rect or set of coordinates in the world which corresponds to what is visible on screen. get_viewport_rect() does not adjust for current camera position or zoom level. Any ideas?