Drip rail caulk?

Pauly has the right idea. On the ends u can make a dam by using tape to keep it from flowing out. And once its dry you can sand it smooth. Or as u apply it keep thinner on hand and wet ur finger w the thinner and smooth it out like you would caulk