In functions.php, where custom post type—for this example—is review:

add_filter( 'widget_posts_args', function($args) {
  $args['post_type'] = ['post','review’];
  return $args;
});

From here on, the 'Recent Posts' widget will display both the normal posts as well as the custom post type defined as review.