In what ways can judges contribute uniquely to legislative bodies, and what challenges might arise from their participation?

Former CJI Chandrachud mentioned that judges bring valuable experience to legislative bodies. I want to explore the benefits and potential issues of having former judges in law-making roles.