Have actually run the cables inside the handlebar on one of our tandems.
Drilled hole about 1 inch from bar end and another hole where bartape ends topwards the stem.
Was told that handlebar would eventually break where we drilled it.
Lasted 56,000 miles, and no issues.
Your results may vary.