Tooltips in Editor Windows?

Hey guys,

Do you know any alternative to the built-in Tooltip Atrribute which works with editor windows? The current is, as noted in the release notes, only for Inspectors, means only avaiable in MonoBehaviours. But I saw lots of other Editor Windows having Tooltips, so how would you implement it? Do I have to write my own code?

[Tooltip("Some Tooltip")]

Works in a MonoBehaviour, where ‘Tooltip’ basically describes the TooltipAttribute Class.
However, in an Editor Window, theres no Tooltip rather than the TooltipAttribute, and using either of those results in errors:

Unexpected symbol `['

and all following code is ‘unexpected’.

Do you know any common approach to this problem?
Seneral

You would actually use GUIContent to create a tooltip. Example:

[CustomEditor(typeof(Example))]
public class ExampleEditor : Editor
{
    private void OnEnable()
    {
        Target = (Example) target;
    }
    
    public override void OnInspectorGUI()
    {
        Target.testFloat = EditorGUILayout.FloatField(new GUIContent("Test Float", "Here is a tooltip"), Target.testFloat);
    }
}

It took me quite a while to find this myself.

Hope that helps!