That is a very bad idea in practice because the serial-protocol used by these to communicate between the application and radio is not designed to handle disconnections (you see it was designed using the assumption that the connection is stable), which is why there are warning against using WiFi or WLAN/VPN for Zigbee Coordinator with ZHA. So be warned as you can get serious issues with such a setup unless you have a 100% stable connection all the time. β https://www.home-assistant.io/integrations/zha#other-supported-but-not-recommended-zigbee-radio-adapters-or-modules (and Zigbee2MQTT has a similar warning that also specifically recommoned against connecting a adapter via WiFi/WAN/VPN β Connect to a remote adapter | Zigbee2MQTT )
FYI, if you search you will find several discussions dedicated about such setups, see example: