Is it possible to create rectangular windows that can change sizes on a wall?

I think you might have some joy inventigating:

But it's gonna take a while... :)

EDIT: So, I watched a bit more, not quite right. But I think begin able to make the procedural mesh like this is the way forward.

There is also a market place product that does this, but it’s expensive…