Object picking is broken in scaled viewports? Any workarounds?

Godot Version

v4.2.stable.mono.official [46dc27791]

Question

I seem to be suffering from `2d` or `viewport` stretch mode does not scale mouse coordinates · Issue #34805 · godotengine/godot · GitHub, or at least its continued manifestation in 4.x

Also alluded to here with no mitigation: `2d` or `viewport` stretch mode does not scale mouse coordinates · Issue #34805 · godotengine/godot · GitHub

Furthermore, as texture scaling in subviewports is also broken (SubViewportContainer does not scale Viewport properly with CanvasItems project scale mode. · Issue #77149 · godotengine/godot · GitHub), and requires scaling of the subviewport to mitigate it, that also means that the texture scaling issue in #77149 can’t be fixed.

Does anyone know anyone workarounds for this? It seems to completely break what I need for my game :frowning:

This article might give you some clues. It explains much of what you ask.