Wodonga motel room torched by homeless drug user, court told