Gets and sets a weak reference to a user-defined value.
This can be used to attach arbitrary data to a widget.
If the user data is an Object, then represented_object should be used instead (so that it will increase the reference count).