To customize a dropdown in p5.js, you can use the createSelect() function to create a dropdown menu. You can then use the style() function to customize the appearance of the dropdown by setting properties such as background color, text color, font size, and text alignment. Additionally, you can use the position() function to set the position of the dropdown on the canvas.