Doors and windows are objects and objects do not use Building Materials.
They only have surfaces as you noted.
Have a look at how your wall interacts with the slab without any door or window.
If your door/windows have sills and trims/architraves you may find that the floor finishes may pass through them but they should be cut by the wall.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11