How to make a VBoxContainer scale while shrinking the split_offset of an HSplitContainer?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By SASUPERNOVA

I am trying to make a Tween display an animation of a VBoxContainer scaling while its parent HSplitContainer’s split_offset is shrinking, to achieve a drawer effect. So far, I am doing this:

func drawer_display():
#drawer is a VBoxContainer
#and hsplitter is an HSplitContainer
var tween = get_node("Tween")
drawer.visible = true
drawer.rect_scale = Vector2(0,1)

tween.interpolate_property(hsplitter,
"split_offset", get_viewport().size.x,
get_viewport().size.x - 50, 2,
Tween.TRANS_LINEAR, Tween.EASE_IN)

tween.interpolate_property(drawer,
"rect_scale", Vector2(0, 1), Vector2(1, 1), 2,
Tween.TRANS_LINEAR, Tween.EASE_IN)

tween.start()

However, drawer.rect_scale = Vector2(0,1) at the beginning is ignored, and VBoxContainer appears at full size instantly, ignoring the Tween animation. Any tips?