Linux: make frameless window resizable

Merge upstream patch from #169010; Fix #142