To be clear, YSFlight is partially open-source software.
Here is official repo[0] of its GUI toolkit (OpenGL-based) and various miscellaneous apps based on it.
PolygonCrest (aka `ysgebl`), an official 3D editor for addon making for YSFlight, based on the same toolkit as YSFlight, is fully free & opensource.
[0] https://github.com/captainys/public
[1] https://github.com/captainys/public/tree/master/src/ysgebl