Did you try to initialize the B4XPreferenceDialog onto the panel like this instead of activity or Root:
Code:
PrefDialog.Initialize(Panel1, "My Data", 300dip, 300dip)
I played with it for few minutes. It seems to work. I hope your relatives in Ukraine and Turkey are safe