Make sure that you are not blocking a possible fire escape area.
Other than that concern, there is nothing wrong in placing a dresser in front of a window.
Other than that concern, there is nothing wrong in placing a dresser in front of a window.