Renderer|FX|libgui: Apply target’s active rectangle when accessing depth values

The shader has no visibility to the used GL viewport, so we must
do the transformation manually.