Proper way to use block into my custom phtml file?

I want to show my wishlist sidebar section into my custom phtml file

What is the proper way to achieve this,

<referenceContainer name="sidebar.additional"> <block class="MagentoWishlistBlockCustomerSidebar" name="wishlist_sidebar_c" as="wishlistc" template="Magento_Wishlist::sidebar.phtml"/> </referenceContainer> 

path: vendormagentomodule-wishlistviewfrontendtemplatessidebar.phtml
Block : MagentoMultipleWishlistBlockCustomerSidebarInterceptor

submitted by /u/aveeva7
[link] [comments]