It's a drain for the roof, very common on the N15 for the sunroof models to get blocked and start to rot out from poor drainage so may be worth fitting an airline to the end and giving it a few shots to clean any leaves or gunk or debris that may have gotten washed into the hose
Sent from my SM-G900F using Tapatalk