Qt already has really good binding, see Pyside6 for instance. GTK similarly through introspection.
Not sure why you want to build desktop GUIs using web tech though.