This is done by setting the background object on the top layer order and setting the Mode behavior to 3 (Multiply).
The Square is a white object, so the multiplied foreground is acting like a green screen.
Also, this mostly works with black backgrounds
Use the Left or Right arrow keys to change background