Please, clarify your question, attach some screenshots for a better understanding of which button should show the cart (custom button or after you click “Add to cart”).
Unfortunately, we don’t have such options for making custom additional cart widgets. We also don’t have a custom code for that. You can use any custom code at your own risk.