Open ECM and manage Matter device mutiple fabric with HomeKit API

My app uses the HomeKit API and has been paired with a Matter device. How do I use the HomeKit API to open the matter device's ECM,and use mutiple fabric to share device with other ecosystem?