Quite often, gabled roofs have a horizontal header beam below the gabled triangle.
If not, you can insert a lightweight header beam horizontally that is tall enough not to sag like an upright 2x4 or 2x6 depending on the width of the space.
We Velcro the triangle above the beam and track the rectangle below the beam.