This is indeed doable!
You need to make a custom environment via a WorldEnvironment
first. Then in in background mode, you set it to canvas and set the canvas layer lower than 0. You'd then have to add a CanvasLayer
node to your scene, and give it the same number you chose. Any 2D node under this Canvas Layer will be rendered in the background.