"Cutting" into solid objects

If I draw a solid box or rectangle, is there a way to cut out a small portion of the center?

Yes, use write masks