That would be an enormously complex thing to program, if you want it to be completely customizable after the first placement.
That's the reason GS instead offers so many different window types for you to customize.
The Modular Joinery object has this flexibility regarding the mullion grid, but only for a limited collection of opening types.
The Door and Window Builder add-on is something of the kind, it lets you build whatever you like from scratch.
AC4.1-AC26SWE; MacOS13.5.1; MP5,1+MBP16,1