The best way to do this would be to fake it. Have normal physics2D (or physics) colliders and rigidbodies attached. You may need to play around with several of the following options. Try them in this order. I present multiple options because I have not yet tried to do this myself, I’m not sure what conflicts will arise.
Attatch the physics components directly to the UI elements
Have the physics components as parents of the UI elements
Use a script to position the UI to match the physics position every frame