This version of Unity is unsupported.

GUIStyle.DrawWithTextSelection

Switch to Manual
public void DrawWithTextSelection(Rect position, GUIContent content, int controlID, int firstSelectedCharacter, int lastSelectedCharacter);

Description

Draw this GUIStyle with selected content.