You can use the App Bridge for this purpose I believe → https://shopify.dev/tools/app-bridge. Assuming that it’s external functionality you are looking for in relation the Shopify Admin or POS areas. If it’s related to Shopify E-com then the cart is an element that’s already exposed within the Shopify shop’s pages if I’m not mistaken.