Adding any granular material can nucleate bubbles in superheated water. If the added material contains starch or gluten, the bubbles can form a strong mat instead of bursting at the surface, so the next group of bubbles pushes the mat upwards and the pan boils over. Same with milk and many other substances.