When using the Window QtQuick type, the default height of it is 0 and when its property named "visible" is set to true, the height gets transformed into 160 as it is visible. Even if you manually set the height of the Window to 0, when it becomes visible, it still gets transformed into 160. When using another value for height, such as 10, the value is not changed when the Window is shown.
Code:
import QtQuick 2.10
import QtQuick.Window 2.10
Window {
visible: true
height: 0
onHeightChanged: console.log("height", height);
}