I find it easiest to sew everything inside out.
…and the snip will allow you to fold the fabric
The two diagrams below may help, if I understand what you’re trying to do. I use this method to attach the bottom edge of boxed side pockets to the side panel of a backpack. Would also work for main panels of the backpack.
The first diagram shows a flat piece of base fabric on the left, and above it is another piece of fabric folded twice to form a box extending to the right. Each of the three faces of this box are different colors to facilitate viewing, but it’s all one piece of fabric.
Before folding the box fabric, I flatten it and mark both corner locations. At each corner location, IÂ measure inward one seam allowance and sew a bartack parallel to the edge. These bartacks keep the “snips” or slits that will be cut next from spreading further than they should.
Cut a “snip” or slit at each corner extending from the edge to just before the bartacks. Then, as shown in the second diagram, you can now press the box against the base fabric panel, so that the corners of the box splay out flat.
Next, line up all the edges all the way around the box, tape or clamp them all into place, then sew all the way around the perimeter of the box, one seam allowance from the edges, making sure to sew through both layers of fabric all the way around.

