All gas dryers require venting period. How it's done safely should be your concern. All gas appliances require fresh air for combustion, and the most important thing is to check local building codes to see if it's allowed. The last thing you would want is a closet that leaks CO2.