It’s easy if you want to use a different taxonomy. Just change the ‘category’ value below to whatever your taxonomy name is.
<?php
wp_dropdown_categories( array(
'taxonomy' => 'category',
) );
?>
For additional parameters, see the full list on the WordPress Codex.