The description above the function explains:
/// <summary>
/// Convenience function to be used as a callback that will clear the input field's focus.
/// </summary>
It's meant to be called from some delegate set in Inspector.
When using code, use UIInput.isSelected.