Filled and outline shapes
An outline shape prints as a thin wall, and a hole cuts away what it overlaps.
Filled decides whether a shape is a solid area or only its outline. Solid decides whether it is a solid part or a hole. Both are in the Properties panel: select a shape, open Properties and expand Appearance.

Filled
New rectangles and circles start filled. Untick Filled and the 2D panel shows only the shape's outline.
In the 3D view the shape becomes a wall 2 mm wide, centred on the line, and an STL or 3MF export contains the same wall. A 50 × 30 mm rectangle becomes a frame 52 × 32 mm across the outside. You cannot change that 2 mm width.
If you want a frame or a hollow whose wall you can see and size yourself, leave Filled on and cut the middle out with a hole instead.
Ticking Filled on an open line joins its two ends with a straight edge to make an area.
Solid
New shapes start with Solid ticked. Untick it to turn the shape into a hole: it becomes see-through in the 3D view and cuts away the solid shapes it overlaps, instead of printing as a part. This is the same as Hole in the context menu. See Boolean operations.