This is a good trick. However the wall does lose it's property of a wall and becomes a solid subtraction. You would not be able to insert doors or windows into the solid subtraction.
You can manipulate a door to look like a niche and still retain the wall as a wall. By adjusting the door swing, thickness, height, and jamb thickness, you can create what appears to be a niche.