Would it be technically legal? If the waters are under danish control, what could germany or the baltic countries do? Obviously, it won't actually ever happen, but waterway sovereignty is interesting
(A kind of similar situation is the nile dam in Ethiopia, with the fallout it led to with Egypt)