Menu text with more than one line?

I was wondering if I could make a custom menu using plugins. Guess it's possible, but, while playing around with javascript, I found that piece of code which handles almost every text drawn:

Window_Base.prototype.drawText = function(text, x, y, maxWidth, align) {
this.contents.drawText(text, x, y, maxWidth, this.lineHeight(), align);
};

(Sorry, didn't find the code wrapper)

I tried to change the text parameter to something like "hello\nworld!", but the newline character was drawn as a blank space.

Am I doing it wrong? Is there a more convenient way of doing it?
Alright, it's just stupid to do what I did, as every text would be replaced. But the point is, I just want to know if it is possible to break a line.
As far as I know, it would just be calling that function multiple times with different y-coordinates. You could write a write a function that splits text based on "/n" and draws it on a different line depending on your need.

Original thread: https://forums.rpgmakerweb.com/threads/menu-text-with-more-than-one-line.89164/