When placing a L shape out of iron bars, 3 layers, and place water in the corner,
example: R: iron W: water
W R
R
then when you destroy the iron bar covering it, it just floats midair.
Comments 2
From what I understand of what you tried to explain, this is a feature added in 1.13. There should be some information here -> https://minecraft.gamepedia.com/Water
Yeah. That's water mechanics for you.