I found the solution.
Model should look like this:
[DisplayName("Level")]
[UIHint("LevelId")]
[Required]
public int? LevelId { get; set; }
The EditorTemplate should look like this:
@model int?
@Html.DropDownListFor(model => model, (IEnumerable<SelectListItem>)ViewBag.LevelId, String.Empty)
It is very important that i put the "?" after the int because i have a default value in the dropdown.
I didnt have to create a ViewModel for the dropdown.
This is how the source ended up looking after the fix:
<div class="editor-field">
<select data-val="true" data-val-number="The field Level must be a number." data-val-required="Feltet Level skal udfyldes." id="LevelId" name="LevelId">
<option value=""></option>
<option value="1">Normal</option>
<option value="2">Admin</option>
</select>
<span class="field-validation-valid" data-valmsg-for="LevelId" data-valmsg-replace="true"></span>
</div>
Thanks for all the suggestions Darin Dimitrov, but they didnt work for me.