I find when making windows that it is easier, inside the window component to keep the "raw" edges of the cutting rectangle or shape , then all the other parts of the window are also components. It helps in keeping the window "cutting" and work on the parts of the window later on. At the start this rectangle of edges might be a part of the window pieces, but I separate it out.