One of my favorite chili recipes suggests doing exactly this to toast them before turning them into a puree:
https://www.seriouseats.com/pressure-cooker-chile-con-carne-...The important part is that they're dried so there's not enough water to cause a steam-fueled capsaicin bomb in your microwave.