Magento 2: Call a Widget in a .phtml file
For Display Type = All Product Widget
{{widget type="Magento\Catalog\Block\Product\Widget\NewWidget"
display_type="all_products" products_count="5" template="product/widget/new/content/new_grid.phtml"}}
and
<?php echo $this->getLayout()->createBlock("Magento\Catalog\Block\Product\Widget\NewWidget")->setDisplayType("all_products")->setProductsCount("5")->setTemplate("product/widget/new/content/new_grid.phtml")->toHtml(); ?>
For Display Type = New Product Widget
{{widget type="Magento\Catalog\Block\Product\Widget\NewWidget" display_type="new_products" products_count="5" template="product/widget/new/content/new_grid.phtml"}}
and
<?php echo $this->getLayout()->createBlock("Magento\Catalog\Block\Product\Widget\NewWidget")->setDisplayType("new_products")->setProductsCount("5")->setTemplate("product/widget/new/content/new_grid.phtml")->toHtml(); ?>