Have you had a good look in the library?
They may not do exactly what you want but that is another matter.
It would be very hard to script a window that can do everything that may be required.
Sometimes it is easier to make your own custom window from slabs.
https://helpcenter.graphisoft.com/guides/archicad-21/archicad-21-reference-guide/elements-of-the-vir...
Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11