[Qt] the RPC Console should be a QWidget to make window more independent

fix issue #5254
Please keep the `windowType() != Qt::Widget`. Pressing escape in disablewallet mode now deletes the interface.