Gotcha! It was a change introduced by 4.0:
https://playground.babylonjs.com/#NQUPP3#1
You just need to tell the system that your rect must block events (and not let them go to the scene where they will be capture) with rect.isPointerBlocker = true;