bar end shifters on drop bars - why not run the cables all the way to the stem?
It will work, but you will add considerably more housing and 2-3 more bends in the housing.  The additional bends will introduce friction which will affect shifting performance, but it should be usable if the cable and housing are good quality and you avoid damaging the cable during installation.