You should probably try with the UIDocument of the new runitme package “com.unity.ui”:“1.0.0-preview.3”
See if it fix your issue.