magento2 – How to use fotorama in my custom widget?

So I finally figured it out:

Found this link Magento 2 + need to use fotorama in cms page

Load it to custom template phtml file

<?php echo $block->getLayout()
         ->createBlock('MagentoFrameworkViewElementTemplate')
         ->setTemplate('Magento_Theme::fotorama_slider.phtml')
         ->toHtml();
?>