Rectangular Attenuation "radius" for lights?

Hey +1 here,
Been looking for a decent way to mask lights. Especially rect lights since they’re presented as a rectangular surface of light, but the light bleeding is spherical. Gets really messy in buildings with multiple floors for instance.

Lowering the radius when the player is not in the room is not an option for me, and disabling shadow is not preferable since it would cause issues with other elements of the scene.

Is there no way to use a light function to mask light to a specific shape?