Google 'sympathetic magic' and you will find a more detailed explanation, but basically it is using like to magically cause like (here, the water spilt brings rain water ). 'By right of' here is intended to mean 'by way of' or 'by the law of'.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.